package com.scwatch.core.service;


import com.scwatch.common.orm.RowSide;
import com.scwatch.core.domain.Chatroom;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import java.util.List;
import java.util.Map;

public interface ChatroomService {
    public Page<Chatroom> findAll(Map<String, String[]> params, Pageable pageable);

    public RowSide<Chatroom> findSide(Map<String, String[]> params, Chatroom bean, Integer position, Sort sort);

    public List<Chatroom> getList();

    public Chatroom get(Integer id);

    public String replace(String s);

    public Chatroom save(Chatroom bean);

    public Chatroom update(Chatroom bean);

    public Chatroom delete(Integer id);

    public Chatroom[] delete(Integer[] ids);
}
